package com.frank.oj.service.team;

import com.frank.model.entity.training.TrainingProblem;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.dto.TrainingProblemDTO;

import java.util.HashMap;

/**
 * @author frank
 * @Date 2024/5/4
 */
public interface GroupTrainingProblemService {
    CommonResult<HashMap<String, Object>> getTrainingProblemList(Integer limit, Integer currentPage, String keyword, Boolean queryExisted, Long tid);

    CommonResult<Void> updateTrainingProblem(TrainingProblem trainingProblem);

    CommonResult<Void> deleteTrainingProblem(Long pid, Long tid);

    CommonResult<Void> addProblemFromPublic(TrainingProblemDTO trainingProblemDto);

    CommonResult<Void> addProblemFromGroup(String problemId, Long tid);

}
